package com.touchstone.synchdata.service.impl;

import com.touchstone.synchdata.dao.mssql.MSSQLMapper;
import com.touchstone.synchdata.service.IMSSQLService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @Description : sql sever数据源业务接口
 * @Author : hunter
 * @Date: 2020-06-22 19:51
 * @Version: 1.0
 **/
@Slf4j
@Service
public class MSSQLServiceImpl implements IMSSQLService {

    @Resource
    private MSSQLMapper mssqlMapper;

    @Override
    public String getVersion() {
        String version = mssqlMapper.selectVersion();
        log.info("当前SQL Server数据库版本为【{}】", version);
        return version;
    }
}
